<?php
    $current_Dir = 'uploads/';
	$dir = opendir($current_Dir);
	
	echo "<p>Upload Directory is <b>$current_Dir</b></p>";
	echo "<p>File List : </p><ul>";
	
	while(false != ($file = readdir($dir))){
		if($file != "." && $file != ".."){
			echo "<li>$file</li>";
		}
	}
	
	echo "</ul>";
	closedir($dir);
?>